package com.dcy.znoa.controller.publiz.model.canteenMenu;

/**
 * Created by pengyu on 2017/10/10.
 */

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UpdateCanteenMenuModel {

    @NotNull
    Long cmId;

    Long canteenId;

    @NotNull
    String cmName;

    @NotNull
    Integer price;

    @NotNull
    Integer cmType;//0 全部 1 早餐 2 午餐 3 晚餐

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date cmTime;//上菜日期 只有年月日

    String pic;//图片地址

//    @NotNull
    Integer validFlag;

    Long updateOperId;

    Date updateTime = new Date();


}
